{extend name="public/base"/}
{block name="style"}
<style>
    body {
        background-color: #f9f9f9;
    }
	.g-wrap {
		width: 1024px;
		margin: 0 auto;
	}
    .m-syn-list {
        font-size: 0px;
    }

    .m-syn-list > div {
        display: inline-block;
        border-radius: 5px;
        margin-top: 35px;
    }

    .u-synlist-left {
        vertical-align: top;
    }

    .u-synlist-left > a {
        width: 220px;
        height: 70px;
        margin-bottom: 25px;
        border: 1px solid #c4c4c4;
        background-color: #fff;
        border-radius: 5px;
        font-size: 19px;
        color: #ff6567;
        text-align: center;
        line-height: 70px;
        position: relative;
        display: block;
    }

    .u-synlist-left > a:after {
        content: '';
        display: block;
        position: absolute;
        width: 40px;
        height: 40px;
        background-color: #fff;
        right: -5px;
        top: 12px;
        transform: rotate(45deg);
        border: 1px solid #c4c4c4;
        z-index: -10;
    }

    .u-synlist-left > a:before {
        content: '';
        display: block;
        position: absolute;
        width: 4px;
        height: 24px;
        background-color: #fff;
        right: -1px;
        top: 21px;
    }

    .u-synlist-left .z-current {
        background-color: #ff6567;
        color: #fff;
        font-weight: bold;
    }

    .u-synlist-left .z-current:after,
    .u-synlist-left .z-current:before {
        background-color: #ff6567;
    }

    .u-synlist-right {
        width: 760px;
        margin-left: 40px;
        border: 1px solid #c4c4c4;
        background-color: #fff;
        padding-bottom: 50px;
        min-height: 370px;
    }

    /*右边*/
    .u-syn-nav {
        padding: 20px 0 20px 35px;
        border-bottom: 1px solid #eee;
    }

    .u-syn-nav span {
        color: #999999;
        font-size: 14px;
    }

    .u-syn-nav span a {
        color: #999999;
        font-size: 14px;
        display: inline-block;
        margin: 0 5px;
    }

    .u-syn-nav span a:hover {
        color: #ff6567;
    }

    .u-synlist-right ul li:last-child div.u-syn-list {
        border-bottom: none;
    }

    .u-syn-list {
        font-size: 0;
        border-bottom: 1px solid #eee;
        margin: 0 20px 0 40px;
        padding: 30px 0 35px;
    }
	

    .u-syn-list > a > img {
        display: inline-block;
        width: 210px;
        height: 140px;
        border-radius: 3px;
    }

    .u-syn-list > div {
        display: inline-block;
        width: 440px;
        margin-left: 35px;
        vertical-align: top;

    }

    .u-syn-list > div > h3 {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .u-syn-list > div > h3 a {
        color: #3a3a3a;
        width: 100%;
    }

    .u-syn-list > div > p {
        font-size: 14px;
        color: #999999;
        line-height: 23px;
        width: 100%;
        height: 65px;
        overflow: hidden;
    }

    .u-syn-list > div > span {
        display: block;
        margin-top: 15px;
        font-size: 12px;
        color: #999999;
    }

    .u-syn-list .u-syn-seen i {
        display: inline-block;
        width: 16px;
        height: 11px;
        /*background: url(/styles/images/synthesize/eye-icon.png);*/
        margin-right: 5px;
        vertical-align: middle;
    }

    .u-syn-list .u-syn-seen {
        color: #ff9b65;
        float: right;
    }
	.f-dib {
	 display: inline-block;
	}
</style>
<script src="/public/novel/js/ajaxcommon.js?t=121312"></script>
<script src="/public/novel/js/autoload.js"></script>
{/block}

{block name="body"}
<style>
    .menuBox li {
        float: left;
        width: 55px;
        height: 35px;
        line-height: 35px;
        text-align: center;
        font-size: 16px;
        -moz-border-radius: 8px;
        border-radius: 8px;
    }
	.bookTop h2{text-align:center;font-size:18px;}
	.bookTop p{margin-top:10px;text-indent:2em;font-size:14px;}
</style>

{include file="public/header" /}

<div class="g-wrap m-syn-list">
    <!-- 左边 -->
    <div class="u-synlist-left">
        <a id="topics" class="" href="javascript:;" data-cid="2">专题列表</a>
        <a id="interviews" href="javascript:;" data-cid="3">作者访谈</a>
        <a id="copyrights" href="javascript:;" data-cid="4">版权信息</a>
        <a id="news" href="javascript:;" data-cid="1" class="z-current">站内动态</a>
    </div>
    <!-- 右边 -->
    <div class="u-synlist-right">
        <div class="u-syn-nav">
            <span><a href="/index.php">首页</a>&gt;<a id="more_title" href="javascript:;">站内动态</a></span>
        </div>
        <div>
            <ul id="list_node">
			{volist name="news" id="vo" key="k"}
				<li><div class="u-syn-list"><a class="f-dib" href="{:url('index/news/detail',['id'=>$vo.id])}" target="_blank"><img src="{empty name="vo.cover"}/public/novel/images/default_comment.png{else /}{$vo.cover}{/empty}"></a><div><h3 class="f-text-overflow"><a href="{:url('index/news/detail',['id'=>$vo.id])}" target="_blank">{$vo.title}</a></h3><p>{$vo.content|msubstr=0,50,'utf-8',true}</p><span><em class="u-syn-time">发布时间：{$vo.create_time|date='Y-m-d',###}</em><em class="u-syn-seen"><i></i>浏览：{$vo.visit}</em></span></div></div></li>
			{/volist}
			</ul>
            </div>
        </div>


    </div>

</div>

{block name="include"}{include file="public:footer" /}{/block}

{/block}

{block name="script"}
	<script type="text/javascript">
		$(document).ready(function(){
			var href = window.location.href;
			var query = href.substr(href.lastIndexOf("#"));

			var topic = function (c_id) {
				autoLoad.init({
					pageSize: 5,
					url: 'getPointList/' + c_id,
					htmlNode: 'list_node',
					initTpl: function (data) {
						var tpl = '<li>' +
							'<div class="u-syn-list">' +
							'<a class="f-dib" href="' + data.jump + '" target="_blank">' +
							'<img src="' + data.cover + '">' +
							'</a>' +
							'<div>' +
							'<h3 class="f-text-overflow"><a href="' + data.jump + '" target="_blank">' + data.title + '</a></h3>' +
							'<p>' + data.content + '</p>' +
							'<span><em class="u-syn-time">发布时间：' + data.create_time + '</em><em class="u-syn-seen"><i></i>浏览：' + data.visit + '</em></span>' +
							'</div>' +
							'</div>' +
							'</li>';
						return tpl;
					}
				}).getData();
			};

			// 列表标题切换
			$(".u-synlist-left").children().on("click", function () {
				var c_id = $(this).data('cid');
				$("#more_title").text($(this).text());
				$(this).addClass("z-current").siblings().removeClass("z-current");
				topic(c_id);
			});

		});
	</script>
{/block}
